#include "Heap.h"


int main()
{
	Heap hp;
	HeapInit(&hp);

	int arr[] = { 16, 72, 31, 23, 94, 53 };
	for (int i = 0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		HeapPush(&hp, arr[i]);
	}


	while (!HeapEmpty(&hp))
	{
		int val = HeapTop(&hp);
		printf("%d ", val);
		HeapPop(&hp);
	}
	printf("\n");


	HeapDestroy(&hp);

	return 0;
}